//
// Created by wkm on 2024-04-16.
//

#include "x3time_driver.h"

void x3time_driver::prc_x3time_driver() {
    d_input_data.write(0x1F);
    d_reset.write(true);
    wait();
    d_reset.write(false);
    wait();
    wait();
    wait();
    wait();
    d_start.write(true);
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    d_input_data.write(0x2E);
    d_reset.write(true);
    wait();
    d_reset.write(false);
    wait();
    wait();
    wait();
    wait();
    d_start.write(true);
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    d_input_data.write(0x23);
    d_reset.write(true);
    wait();
    d_reset.write(false);
    wait();
    wait();
    wait();
    wait();
    d_start.write(true);
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    wait();
    sc_stop();
}